import request from '@/utils/request'

export const diseaseList = (search) =>
  request({
    url: '/disease',
    method: 'get',
    params: {
      encode: search.encode,
      offset: search.offset,
      limit: search.limit
    }
  })
export const saveDisease = (disease) =>
  request({
    url: '/disease/add',
    method: 'post',
    data: disease
  })
export const updateDisease = (id, disease) =>
  request({
    url: '/disease/' + id,
    method: 'put',
    data: disease
  })
export const removeDisease = (id) =>
  request({
    url: '/disease/' + id,
    method: 'delete'
  })

